import service from '@/utils/request'

// @Tags FirstOrderProcessingSize
// @Summary 创建首办单-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingSize true "创建首办单-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /firstOrderProcessingSize/createFirstOrderProcessingSize [post]
export const createFirstOrderProcessingSize = (data) => {
  return service({
    url: '/firstOrderProcessingSize/createFirstOrderProcessingSize',
    method: 'post',
    data
  })
}

// @Tags FirstOrderProcessingSize
// @Summary 删除首办单-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingSize true "删除首办单-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingSize/deleteFirstOrderProcessingSize [delete]
export const deleteFirstOrderProcessingSize = (params) => {
  return service({
    url: '/firstOrderProcessingSize/deleteFirstOrderProcessingSize',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingSize
// @Summary 批量删除首办单-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除首办单-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingSize/deleteFirstOrderProcessingSize [delete]
export const deleteFirstOrderProcessingSizeByIds = (params) => {
  return service({
    url: '/firstOrderProcessingSize/deleteFirstOrderProcessingSizeByIds',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingSize
// @Summary 更新首办单-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingSize true "更新首办单-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /firstOrderProcessingSize/updateFirstOrderProcessingSize [put]
export const updateFirstOrderProcessingSize = (data) => {
  return service({
    url: '/firstOrderProcessingSize/updateFirstOrderProcessingSize',
    method: 'put',
    data
  })
}

// @Tags FirstOrderProcessingSize
// @Summary 用id查询首办单-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FirstOrderProcessingSize true "用id查询首办单-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /firstOrderProcessingSize/findFirstOrderProcessingSize [get]
export const findFirstOrderProcessingSize = (params) => {
  return service({
    url: '/firstOrderProcessingSize/findFirstOrderProcessingSize',
    method: 'get',
    params
  })
}

// @Tags FirstOrderProcessingSize
// @Summary 分页获取首办单-尺码列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取首办单-尺码列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /firstOrderProcessingSize/getFirstOrderProcessingSizeList [get]
export const getFirstOrderProcessingSizeList = (params) => {
  return service({
    url: '/firstOrderProcessingSize/getFirstOrderProcessingSizeList',
    method: 'get',
    params
  })
}
